package cn.iocoder.yudao.module.book.controller.app.collect.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 收藏新增/修改 Request VO")
@Data
public class AppCollectSaveReqVO {

    @Schema(description = "收藏id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25501")
    private Integer collectId;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5219")
    @NotNull(message = "用户id不能为空")
    private Integer userId;

    @Schema(description = "绘本id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14393")
    @NotNull(message = "绘本id不能为空")
    private Integer bookId;

    @Schema(description = "绘本集id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25573")
    @NotNull(message = "绘本集id不能为空")
    private Integer collectionId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}